/*
 * @Author: your name
 * @Date: 2021-08-21 22:56:54
 * @LastEditTime: 2021-08-23 17:13:04
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_study\src\store\action.js
 */
import {getCart} from 'network/cart'

const actions={
    updateCart({commit}){
        getCart().then(res=>{
            commit('addCart',{count:res.data.length||0})
        })
    }
}

export default actions